import * as type from "./type"
import axios from "utils/http"
import { createGunzip } from "zlib";
let actions = {
   async [type.DOWNLOAD]({commit,rootState},payload){
       await axios({
            method: "get",
            url: "/app/appBanner.html",
            params: {
                position: 1
            },
        }).then(res => {
            // console.log("DownLoad数据请求",res.data);
            let action = {
                type: type.DOWNLOAD,
                payload: res.data
            }      
            commit(action);         
        })
        .catch(err => {
            console.log(err);
            
        })
   
    }

}

export default actions;
